import request from '@/utils/request'
const api_name = '/admin/system/sysPost'

export default{
//展示岗位列表数据
showList(page, limit, sysPost){
return request({
    url: `${api_name}/list/${page}/${limit}`,
    method: 'get',
    params:sysPost
})
},

//新增岗位
addPost(sysPost){
    return request({
        url: `${api_name}/add`,
        method: 'post',
        data:sysPost
    })
},

//删除岗位
deletePost(id){
    return request({
        url: `${api_name}/delete/${id}`,
        method: 'delete'
    })
},

//编辑岗位
editPost(id){
    return request({
        url: `${api_name}/edit/${id}`,
        method: 'get'
    })
},

//修改岗位
updatePost(sysPost){
    return request({
        url: `${api_name}/update`,
        method: 'put',
        data:sysPost
    })
}

}